:host {
  position: relative;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

.even {
  display: flex;
  justify-content: space-evenly;
}

.bar {
  margin: 2rem 0 3rem 0;
  box-shadow: 0 -4px 4px var(--color-light) inset;
}

.container {
  display: inline-flex;
  box-sizing: border-box;
  padding: 1rpx;
  display: inline-flex;
  justify-content: center;
  align-content: center;
  position: relative;

  .image {
    width: 100%;
  }

  .card-image {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .badge {
    display: flex;
    height: 1rem;
    font-size: 1em;
    justify-content: center;
    align-items: center;
  }
}

.container.trigger {
  width: 100rpx;
  flex-direction: column;
  justify-items: center;
  background: var(--color-light);
  border-radius: 4px;

  .badge {
    position: relative;
    font-size: 0.8em;
  }
}

.container.energy {
  width: 1.25rem;
  height: 4rem;
  flex-direction: column;
  border-radius: 4px 4px 0 0;
  background-color: #999;
  position: relative;

  .badge {
    position: absolute;
    background: none;
    font-size: 0.7em;
    top: -1rem;
  }

  .image {
    position: absolute;
    width: 1.5rem;
    bottom: -2rem;
  }

  .p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to bottom, #333, #666);
  }
}


.container.energy.Purple {
  background-color: #F6D8F2 !important;

  .p {
    background: #910782 !important;
  }
}

.container.energy.Red {
  background-color: #FFDAE0 !important;

  .p {
    background: #E50315 !important;
  }
}

.container.energy.Green {
  background-color: #DAF9EB !important;

  .p {
    background: #02A63C !important;
  }
}

.container.energy.Yellow {
  background-color: #FFFCDF !important;

  .p {
    background: #FCCE00 !important;
  }
}

.container.energy.Blue {
  background-color: #D8F3FF !important;

  .p {
    background: #0170BD !important;
  }
}

.text {
  display: inline-flex;
  font-size: 0.9em;
  padding: 0 0.5rem;
}

.image {
  display: inline-flex;
}

.bottom {
  padding-bottom: 6rem;
}

.description {
  font-size: 12px;
  padding: 1rem;
}

.footer-bar {
  position: fixed;
  bottom: 0;
  box-sizing: border-box;
  padding: 8px;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 1rem;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--bg-light);

  .btn {
    width: 50%;
    padding: 0 0.5rem;
  }
}

.deck-cover {
  height: 3rem;
}

.t-cell {
  padding: 0.25rem 1rem !important;
}

.popup-card-detail {
  --td-popup-bg-color: rgba(255, 255, 255, 0);
}

.attr {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-light);

  .hint {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7em;
    color: var(--color-h2);
    margin-bottom: 2px;
  }

  .content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2rem;
    font-size: 0.9em;
  }
}

.cover-setting {
  width: 100%;
  display: flex;
  height: 8.88rem;
  overflow: hidden;
  align-items: center;
  margin-bottom: 1rem;


  .deck-cover {
    display: inline-block;
    width: 6.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--bg-light);
    margin: 0 0.5rem;

    .clear {
      position: absolute;
      bottom: 0;
      right: 0;
      color: var(--color-danger);
      background-color: var(--bg-danger-light);
      height: 2rem;
      width: 2rem;
      border-radius: 0.5rem 0 0 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .scroll {
    display: flex;
    align-items: center;
  }

  .card-img-list {
    box-sizing: border-box;
    display: inline-flex;
    width: calc(100% - 7.5rem);
    height: 100%;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem 0.5rem 1rem 0;
    background-color: var(--bg-main);
    border-radius: 1rem 0 0 1rem;
    position: relative;

    .hint {
      position: sticky;
      left: 0;
      color: white;
      writing-mode: vertical-rl;
      top: 0;
      bottom: 0;
      background-color: var(--bg-main);
      display: flex;
      justify-content: center;
      align-items: center;
      letter-spacing: 0.25rem;
      line-height: 2rem;
    }
  }


  .content {
    width: 100%;
    height: 100%;
  }

  .img-0-1 {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
  }

  .img-0-2 {
    display: inline-block;
    position: relative;
    width: 50%;
    height: 100%;
  }

  .img-1-2 {
    display: inline-block;
    position: relative;
    width: 50%;
    height: 100%;
  }

  .img-0-3 {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 50%;
  }

  .img-1-3 {
    display: inline-block;
    position: relative;
    width: 50%;
    height: 50%;
  }

  .img-2-3 {
    display: inline-block;
    position: relative;
    width: 50%;
    height: 50%;
  }

  .img-0-4 {
    display: inline-block;
    width: 50%;
    height: 50%;
  }

  .img-1-4 {
    display: inline-block;
    width: 50%;
    height: 50%;
  }

  .img-2-4 {
    display: inline-block;
    width: 50%;
    height: 50%;
  }

  .img-3-4 {
    display: inline-block;
    width: 50%;
    height: 50%;
  }

  .single-img {
    display: inline-block;
    height: 6.5rem;
    margin-right: 0.5rem;

    image {
      height: 100%;
    }
  }

}

.divider {
  font-size: 0.9em;
  padding: 1rem 0.5rem 0.5rem 0.5rem;

  .sub {
    font-size: 0.8em;
    color: var(--color-h3);
  }
}